<?php

namespace app\common\sdk;

class LibService
{
    private static $instance = [];

    public static function gInstance()
    {
        $className = get_called_class();
        isset(self::$instance[$className]) || self::$instance[$className] = new static();
        return self::$instance[$className];
    }
}